import { defineStore } from 'pinia'

interface CarouselState {
  activeIndex: number
}

export const useCarouselStore = defineStore('carousel', {
  state: (): CarouselState => ({
    activeIndex: 0
  }),
  actions: {
    setActiveIndex(index: number) {
      this.activeIndex = index
    }
  }
})